<?php
  require_once('tpl/header.php');
    //连接数据库
    require_once('../system/loginCheck.php');
    require_once('../system/dbConn.php');
    connect();
?>

   <form class="form-horizontal" action="doVideoAdd.php" method="post" enctype="multipart/form-data">


  <div class="form-group">
    <label for="inputName" class="col-md-2 control-label">视频名称</label>
    <div class="col-md-6">
      <input type="text" class="form-control" id="inputName" name="videoname" placeholder="视频名称">
    </div>
  </div>



  <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">视频类型</label>
            <div class="col-md-6">
            	<?php 
            		$sql="select * from videotype ";
            		$result=mysql_query($sql);
            	 ?>
                <select class="form-control" name="videotype">
                	<?php 
                	while ($row=mysql_fetch_assoc($result)) {
            		?>
            			<option  value="<?php echo $row['tid']?>"><?php echo $row["typename"]; ?></option>
            		<?php 	
            		}
                	 ?>
				</select>
            </div>
        </div>


 





  <div class="form-group">
    <label for="inputBirthdate3" class="col-md-2 control-label">视屏海报</label>
    <div class="col-md-6">
      <input type="file"  id="inputBirthdate3" name="pic" >
    </div>
  </div>


  <div class="form-group">
    <label for="inputemail" class="col-md-2 control-label">视频简介</label>
    <div class="col-md-6">
    	<textarea name="intro" id="" cols="80" rows="5"></textarea>
    </div>
  </div>


   <div class="form-group">
    <label for="inputemail" class="col-md-2 control-label">下载地址</label>
    <div class="col-md-6">
      <input type="text" class="form-control" id="inputemail" name="address" placeholder="下载地址" >
    </div>
  </div>


  <div class="form-group">
    <div class="col-md-offset-2 col-md-10">
      <input type="submit" value="添加" class="btn btn-default">
      <input type="reset" value="重置" class="btn btn-default">

    </div>
  </div>
</form>


<?php
  require_once('tpl/footer.php');
?>